cmake_minimum_required(VERSION 3.0.0)
project(easyWebServer VERSION 0.1.0)


find_package(Boost REQUIRED)

file(GLOB_RECURSE SRC ${CMAKE_SOURCE_DIR}/src/*.*)
file(GLOB_RECURSE HEADS ${CMAKE_SOURCE_DIR}/src/*.h)
file(GLOB_RECURSE LIBS ${CMAKE_SOURCE_DIR}/lib/*.a)

file(COPY ${HEADS} DESTINATION ${CMAKE_SOURCE_DIR}/include/)

include_directories(${CMAKE_SOURCE_DIR}/include)
include_directories(${Boost_INCLUDE_DIR})

add_executable(${PROJECT_NAME} ${SRC})

target_link_libraries(${PROJECT_NAME} pthread ${Boost_LIBRARIES} hiredis)



